from datetime import datetime
import boto3
import json

sqs = boto3.client('sqs')

# coreProducts_type_list = ["bestsellers"]

task = {
    "url": f"https://www.amazon.com/gp/bestsellers",
    "parser": "default",
    "metadata": {
        "batchId": "2021-07-02",
        "SpiderName": "CoreProductsSpider",
        "tt": "CoreProductsBestSellers",
        "td": "init",
        "tp": "first_page"
    }
}

sendMessageResp = sqs.send_message(
                QueueUrl="pt-spider-serverless-CoreProductsBestSellers-queue",
                MessageBody=json.dumps(task)
            )
print("done")